#include<iostream>
#include<cstring>



class Student
{
  public:
        void SetID(int id)//成员方法
        {
            m_id=id;
        }  
        void SetName(const char *name)
        {
            strcpy(m_name,name);
        }
        void show()
        {
            std::cout<<m_id<<" "<<m_name<<std::endl;
        }
private:
    int m_id;//成员变量
    char m_name[20];
};
struct test//默认访问权限：公有
{
    int a;
    int b;
};
class Test//默认访问权限：私有
{
    int a;
    int b;
};
int main()
{
    Student s;;
    s.SetID(1);
    s.SetName("zhangsan");
    s.show();



    return 0;

}